using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DevExpress.Data.Filtering;
namespace ChuanPlus.Reports
{
    public partial class invoice_master : DevExpress.XtraReports.UI.XtraReport
    {
        public invoice_master()
        {
            InitializeComponent();
           // xpCollection1.Filter = CriteriaOperator.Parse("InvoiceNo = '" + paramInvoiceNo.Value + "'");
        }

        private void xrSubreport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            
            this.xtraReport11.Parameters[0].Value = this.GetCurrentColumnValue("InvoiceNo").ToString();            
        }

        private void invoice_master_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            CriteriaOperator criteria = new BinaryOperator(new OperandProperty("InvoiceNo"), new OperandValue(paramInvoiceNo.Value), BinaryOperatorType.Equal);
            xpCollection1.Criteria = criteria;
        }

    }
}
